﻿using System.Collections.Generic;

namespace Fetches.Fetch.Dto
{
    public class ResultItems
    {
        public Request Request { get; set; }

        public Dictionary<string, object> Data = new Dictionary<string, object>();

        public void Add(string key, object value)
        {
            Data[key] = value;
        }

        public string Summary
        {
            get => Data.ContainsKey("Summary") ? Data["Summary"].ToString() : string.Empty;
            set => Data["Summary"] = value;
        }

        public string Content
        {
            get => Data.ContainsKey("Content") ? Data["Content"].ToString() : string.Empty;
            set => Data["Content"] = value;
        }

        public string Title
        {
            get => Data.ContainsKey("Title") ? Data["Title"].ToString() : string.Empty;
            set => Data["Title"] = value;
        }
    }
}
